Ext.ns('AIR2.Inquiry');
/***************
 * Inquiry page
 *
 * NOTE: can only be called from within an Ext.onReady()
 */
AIR2.Inquiry = function() {
    var tags = new AIR2.UI.TagPanel({
        colspan: 1,
        title: 'Tags',
        iconCls: 'air2-icon-tag',
        storeData: AIR2.Inquiry.TAGDATA,
        url: AIR2.Inquiry.BASEURL + '/tags',
        tagMasterUrl: AIR2.HOMEURL + '/tag',
        allowEdit: AIR2.Inquiry.INQDATA.authz.may_write
    });    

    /* create the application */
    var app = new AIR2.UI.App({
        id: 'air2-app',
        items: new AIR2.UI.PanelGrid({
            items: [
                AIR2.Inquiry.Summary(),
                AIR2.Inquiry.Stats(),
                tags,
            ]
        })
    });
    app.hideProject();
    app.showLocation('Query: '+AIR2.Inquiry.INQDATA.radix.inq_ext_title,
        'air2-icon-inquiry', AIR2.Inquiry.BASEURL);
}
